<template>
  <div class="tasks">
    城南花已开，老程已不在;
  </div>
</template>

<script setup name="tools">
import { ref, onMounted, getCurrentInstance  } from 'vue'

const that = getCurrentInstance().proxy;
const author = ref(' --- 世林')

// 挂载后
onMounted(() => {
  doSomething()
})

// something
function doSomething() {
  console.log('that-', that)
  console.log('author-', author.value)
}
</script>

<style lang='scss' scoped>
</style>
